New car registrations grew by 5% in October, with electric and plug-in hybrid cars responsible for all of the market's growth as petrol and diesel sales continued to fall.