Neuromodulation and time-dependent plasticity in a model of foraging behavior