Hillshire Brands has struck an agreement to buy fellow US food group Pinnacle Foods in a cash-and-shares deal worth US$6.6bn.