but if it looks like they are going to sack you, you may as well resign because they cannot say anything about the alleged nicking in a reference then X

Agreed. I'd find a new job regardless of what happens. If they let you keep your job they will force you to quite with unfair treatment. Bullshit hours. Assign you the worst job in the place every day you work.

Move on.