UK economy not yet 'out of the woods', says the chancellor