Sales of used cars have risen, with greener electric and hybrid vehicles climbing fastest.