China has warned of consequences for Taiwan after officials from Beijing and Taipei attended a Pacific leaders summit