Attention modulates the learning of multiple contingencies