Volkswagen sales slowed after it was revealed that the company had been cheating emissions tests by outfitting some diesel cars with “defeat devices.”