Social norms, cooperation and inequality