The US president has said the tariffs are to force the two US neighbours to step up their fight against fentanyl trafficking into the US.