The UK economy grew by 0.4% with some firms reporting hot weather and sports helped growth in June.