Prices rose at an annual pace of 2.6% in July, the same rate as the previous month and in line with economist forecasts.