Europe’s carmakers used to rule the world but now they are fighting battles at home and abroad.