Growth across the UK economy was weaker than previously thought over the spring, according to revised official figures.