Ravichandran Ashwin picked up three wickets in India's six-wicket victory in the third Royal London One Day International at Trent Bridge.