The US and UK have banned people flying direct from much of the Middle East and North Africa from carrying laptops, tablets and other large electronic devices in the airplane cabin because of concerns about terrorism.