LONDON—The U.K. economy grew faster than previously thought in the three months following June’s vote to leave the European Union, according to fresh growth estimates Friday that suggest there was no significant post-referendum slowdown.

Economists caution, though, that a looming squeeze on consumer spending from accelerating inflation will likely weigh on growth next year.