Cliff-edge model of obstetric selection in humans