Regular pay grew at an annual pace of 5.2%, much faster than expected, official figures show.