Schools in Brighton have been ordered to teach children as young as eight that people “of all genders” can have periods.