The UK economy saw a surprise return to growth in the final three months of 2024 after a better-than-expected performance in December.