Chinese head of state Xi Jinping has used his New Year's Eve speech to make a threat against democratically governed Taiwan.