US snacks maker Hostess Brands has cut its forecast for annual earnings amid pressure on costs and "expected headwinds" in the second half of 2018.