Panama establishes diplomatic ties with China and breaks relations with Taiwan in a major victory for Beijing.