The rate of inflation slowed slightly in July, hitting the Bank of England’s target of 2 per cent but undercutting expectations.