Dairy giant Fonterra has been forced to shut down some of its sites because of a damaged gas pipeline in New Zealand.