Peter DuBois, who was artistic director at the Boston company for 12 years, said he hoped that his resignation would make room for more diversity.