Real pay fell by 0.8% between October and December as inflation soared, official figures show.