Car makers have been warned could fall behind rival brands if they were to divest from electric cars and expand production of diesel.