Britain will ban sales of new gasoline and diesel cars starting in 2040 as part of a bid to clean up the country's air.