Europe’s biggest carmaker has said it will invest billions of euros in electric cars, ride-hailing and automated driving, and launch over 30 electric models by 2025 as it battles to recover from its emissions test cheating.