UK retail sales growth slowed in June for the second month in a row, as poor weather dampened demand for summer clothing.