Donald Trump's nominee for secretary of state has said he anticipates the US "will have to deal with" China invading Taiwan before the end of this decade.