Clothing helped drive sales at UK retailers in July, new figures show, exceeding expectations for minimal growth as the warmer weather helped entice shoppers into stores.