Clothing was the bright spot for UK retailers in June, with an increase in the amount spent and quantity of goods bought, helped by a strong performance from online.