A model of resource partitioning between foraging bees based on learning