New Zealand dairy manufacturer Fonterra is to buy the business and assets of Tasmanian yoghurt producer Tamar Valley Dairy.