The Bank of England’s top economist has suggested there are still worries about lingering price rises in the UK, even though inflation returned to its target level in May.