UK retail footfall fell in June due to tougher comparisons with the same period last year and the arrival of warmer weather.