Prey responses to pulses of risk and safety: testing the risk allocation hypothesis