The British economy has outperformed expectations since last year’s vote to leave the European Union.