Spatial context influences patch residence time in foraging hierarchies