The US president has imposed a new blanket travel ban on 12 countries that he claims is for national security.