Sex-based differences in density-dependent sociality: an experiment with a gregarious ungulate.