New Zealand dairy giant Fonterra is to cut 700 jobs over the next two years in a bid to reduce costs.