The UK economy grew fractionally during the final three months of 2024, according to early official figures which ease the immediate risk of a recession.