The mayor of a French town making headlines for the trial of dozens of men accused of rapes that occurred there over almost a decade has apologized for comments that appeared to downplay the case.