Diamond Foods has booked higher full-year earnings despite flat sales as the US snacks group lowered its operating costs and lapped expenses last year.