US nut maker Diamond Foods has entered into a definitive agreement to acquire the Pop Secret popcorn business from General Mills.