Former teacher accused of sexual relationships with students