Adaptation and learning in multi-task decision systems