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