The economy performed better than previously estimated in the final three months of 2022, new figures show.