Official data shows UK consumer prices rose 1.5% as a new price cap kept a lid on energy prices.