The World No. 1 came to the decision after “consulting with my doctors and my team,” he announced in a statement released by the tournament.