Carmakers and governments have spent billions trying to entice people to switch from petrol to electric, but progress has stalled