The fact that you're ashamed about it is actually a great sign. It shows you've changed. You can't undo the past, yes, but from now on you have the choice to treat your cat in the best way you can, and discussing this with a therapist can help you move on.