July retail sales rebounded from the slow summer start thanks to back-to-school spending on electronics and apparel.