The UK economy just about returned to growth in November after two months of contraction, the latest official figures show.