Apple chief executive Tim Cook has reiterated his opposition to US President Donald Trump's travel ban, saying "if we stand and say nothing it's as if we're agreeing".