China Mengniu Dairy has agreed to buy 26.9% stake in local rival China Modern Dairy in a deal worth US$410m, as it looks improve the security of its milk supply.