The sociality of solitary foragers: a model based on resource dispersion