Britain's economy neared stagnation in the third quarter of the year