The UK economy contracted by 2.9% in January amid lockdown measures, according to figures from the Office for National Statistics.