This is from the TDA, which governs tournaments rather than cash play, but here's what it has to say:
45: Non-Standard Folds
Anytime before the end of the last betting round of a hand, folding in turn when facing a check or folding out of turn are both binding folds and may be subject to penalty.
I couldn't find mention in Robert's, which covers the standard rules for cash play.
Regardless, it's poor etiquette. Unfortunately there's not much you can do about it. The guy who's annoyed you picked off his bluff doesn't really care that you lost a chance at more money. If anything, he's happy you're angry. Best to just let it go. The odds are that you wouldn't have made the hand anyway.