US retail sales maintained their upward trajectory in June as consumers remain engaged with spending boosting the economy in the second quarter, new figures show.