Retail sales rose 0.3% last month as shoppers bought summer clothes and goods, official figures show.