VW agrees to buy back some 'cheat' diesels in Germany