UK clothing and footwear sales were "hit particularly hard" in August as consumers delayed back-to-school purchases and wet weather kept them away from the high street.