An evolutionarily stable joining policy for group foragers