Honeybee economics: optimisation of foraging in a variable world