Tyrrell Hatton stormed to a five-shot win at the DP World Tour Championship, where Rory McIlroy snatched Race to Dubai victory from Eugenio Chacarra.