The UK inflation rate held steady in August, as rising food prices and air fares were offset by smaller rises in the price of clothing and footwear than a year ago.