The rise in prices for clothing in the UK slowed in August compared to a year ago, and despite a slight acceleration of price increases for footwear.