George Osborne warned at the start of the year that the economy faced a “cocktail of risks” because of spillover from a slowdown in China and a slump in commodity prices.