Fonterra, the world's largest dairy exporter, has reported what it said was its first-ever profit for the first half of a financial year, on the back of a 21% jump in revenue.