The UK’s new car market recorded its second successive year of growth with a 2.6% rise in registrations in 2024, new figures show.