The role of cognitive mechanisms and social processes in cooperative learning