Dissipation in planar resonant planetary systems