The role of prediction and outcomes in adaptive cognitive control