Imports at major US retail container ports set an all-time monthly record in July, putting 2017 on track to hit an annual high, new figures show.