Fonterra, the world's largest dairy exporter, is to quit its venture in India after deciding too much investment was needed behind the business.