Transition to chaos by interaction of resonances in dissipative systems. I. Circle maps