Russian finance minister quits after Medvedev spat