New Zealand dairy group Fonterra is to cut around 300 corporate jobs as part of cost cuts across the business.