Demystifying social cognition: a Hebbian perspective