Diamond Foods Inc. and two former executives were charged by the Securities and Exchange Commission on Thursday for their alleged roles in falsifying walnut costs in an effort to boost earnings and meet analyst estimates.