Wang Yafan overcame Sofia Kenin from a set and a break down to take her first WTA title at the Mexican Open.