To answer your first question, yes, it is legal. "Innocent until proven guilty" is a concept in criminal cases; it does not apply in the employment arena.
If you don't know who said what, you can't, and HR is not required by law to tell you.
Sounds very strange, however, that several people have "ganged up" against you to get your fired. Not impossible, I guess, but pretty uncommon.