Monogamy promotes altruistic sterility in insect societies