Brood temperature, task division and colony survival in honeybees: A model