New car sales fell for the first time in six years last year, with demand for diesel cars plunging by almost a fifth.