New diesel and petrol cars to be banned from UK roads by 2040