Tomas Berdych has won the World Tennis Tournament in Rotterdam after beating Marin Cilic in the final.