The perception-action hierarchy of the neocortex