I'd show up with the note signed by God just to aggravate him. The main reason why people get desperate and cheat is because they have to maintain a certain GPA for additional financial aid.
Your teacher was standing in front of you saying those things, probably because she really didn't know what to do. It's an incredibly difficult position to be in. Even the students that cheated for sure, you don't always want to turn them in. You think, 'maybe I can/should keep this small and avoid ruining their lives- don't people deserve second chances?' Have you ever been cheated on by a s/o? Do you know that feeling of undirectable anger, helplessness and rage with no clear outlet, and the confusion over what you should do next? That's about what it's like.
If they don't then he is shaking people down, which is not entirely fair. If they don't have the data then the innocent don't deserve to be shook down for a witch hunt. He should just tell the class, we know some of you cheated, we don't have the data to unwind who did and who did not, so it's a do over for all of you. To the ones that did not, I am sorry but you can thank your fellow classmate.
I would be pissed if they came clean and said they can't sort it out, but I would not blame the professor for the actions of others. As it sits, with the claims that they know who the cheater are, I would hold it against the administration for holding me as a non-cheater to account when they claim to have proof that exonerates me.
If they are so 100% sure about the offenders, then why does everyone have to retake the exam, why is everyone being punished. Maybe he does not have the data he claims he does. Until they could prove that they do, I would be standing my ground on not retaking the test because I am innocent until proven guilty and if they did prove it they would prove why I as a non-cheater need not retake the test.