A drop in clothing and footwear prices contributed to a drop in UK inflation during July, according to a new report.