A theoretical investigation of the effect of predators on foraging behaviour and energy reserves