UK grocery spending hit a record high in the month of December, despite a sharp rise in prices across supermarkets.