UK workers saw their wage rises wiped out by surging inflation late last year, official figures show.