The U.K. economy grew by 0.3 percent in the three months to June compared to the previous quarter, which was in line with expectations.