What to write
Name what you did without softening it, and leave out the word "but" entirely. Do not explain your reasons before acknowledging the effect. Say what you will do differently, then stop. An apology that asks to be forgiven immediately is still about you.