Leading automakers have signalled their intention to scrap internal combustion engines by 2030 or cut back sharply on their production as the sector turns towards electric vehicles.