US confectionery firm Hershey Foods has announced that it has entered into an agreement to acquire Mauna Loa Macadamia Nut Corporation from The Shansby Group, a private equity investment firm.