Total UK footfall was down 2.1% year-on-year in July amid soaring temperatures, figures suggest.