June retail sales were stronger than economists projected, although e-commerce showed continued gains.