Heinz has agreed to be bought by Warren Buffett's Berkshire Hathaway fund and private-equity firm 3G Capital for US$28bn - the largest-ever takeover in the food sector.