Rory McIlroy wins tournament days after breaking up with Caroline Wozniacki