Rafael Nadal will return to number one in the world rankings after his semi-final opponent Tomas Berdych retires injured at the China Open, capping an astonishing comeback for the 13-time Grand Slam champion.