The Taiwanese president has announced plans for the country to build its own submarines.