Riots on the streets, food price rises and reduced medical supplies are real risks of the UK leaving the EU without a deal, a government document has said.