Short- and long-term consequences of grouping and group foraging in the free-living flatworm Dugesia tigrina