Taiwan's president has called on democracies in the Indo-Pacific to "join forces" to maintain regional stability in a speech marking the island's National Day.