The UK government is calling for calm amid the turmoil sparked by a vote to leave the European Union.