Official statistics show the economy avoided recession after GDP grew by 0.3% in the third quarter.