The UK Consumer Prices Index (CPI) rose 2.9% in June, up from a 2.7% increase in May and driven by clothing and footwear.