'Ebb and flow' brain mechanism that drives learning identifi