David Cameron has admitted that he failed in his bid to keep Britain in a reformed European Union and is “truly sorry” for the uncertainty and division that followed the Brexit referendum.