Self-organisation of female menopause in populations with child-care and reproductive risk