The overall level of inflation remained at its target of 2% in June, though this masked a wide variation in the rate for everyday items, with price rises easing for some products but accelerating for others.