The snack-food maker is accused of fraudulently underreporting walnut costs to boost earnings. Two former executives are also charged. Snack-food maker Diamond Foods Inc. agreed to pay $5 million to settle allegations that the company cooked its books.