Mark Cavendish won the fourth and final stage of the Abu Dhabi Tour on Sunday as Estonia's Tanel Kangert claimed overall victory.