New Zealand dairy giant Fonterra has announced chief executive officer Theo Spierings is to leave the role later this year.