The Emergence of Social Hierarchy in Collective Motion of Living Matter