Get a lawyer, NOW! Make sure he understands how imporant it is for this not to blemish your record. DO NOT write or call with ANY sort of apology, it could be taken as an admission of guilt. Let a lawyer handle it, my guess is he will be able to get the charges dropped.
All that said, assuming you have started the facts exactly as they are, I doubt even if it goes on your record it'll be too much of an issue.