The UK Home Secretary has said that travelling abroad without a legitimate reason will soon be illegal.