Resonances in the current-voltage characteristics of a dissipative Josephson junction