Ronnie O’Sullivan set to lose No1 ranking for first time in 17 months after pulling out over ‘medical reasons’