Fonterra, New Zealand's largest dairy company, has joined a pledge from the country's government that aims to tackle childhood obesity.