Short-circuiting Shortcuts: Mechanistic Investigation of Shortcuts in Text Classification