The UK economy flatlined in the third quarter of the year, according to revised official figures.