Taiwan's foreign ministry has condemned China for pressuring Guatemala to end ties with Taipei and switch recognition to Beijing.