Petrol diesel and hybrid cars to be banned by 2040