The economy has posted stronger than expected growth in the second quarter as service industries and manufacturing lifted activity.