The UK has joined the US in banning passengers from carrying electronic devices onto non-stop inbound flights from several Middle Eastern and North African countries.