A record 2.69 m new cars were sold in the UK last year, the fifth consecutive year of growth.