The impact of water level fluctuations on a delayed prey–predator model