Resonant magnetohydrodynamic modes with toroidal coupling. Part I: Tearing modes