UK economy faces stagnation, S&P rating agency warns