VW plans software update for 4 million cars to cut emissions