The UK's consumer prices index (CPI) rose by 7.9 percent in the 12 months to June, data from the Office for National Statistics showed on Wednesday.