Panama opens its first embassy in China five months after cutting ties with Taiwan, which has seen its allies dwindle against the mainland's growing influence.