Australian group Lion has booked an impairment charge of A$338.8m on its dairy business, which it warned faced "considerable headwinds".