Swarm-intelligent foraging in honeybees: benefits and costs of task-partitioning and environmental fluctuations