Headline inflation rises to 2.9% in December but closely watched core figure dips unexpectedly