Public health shocks, learning and diet improvement