General Motors will stop producing petrol and diesel cars in 2035 and will only sell electric vehicles