Evolution of perturbations and cosmological constraints in decaying dark matter models with arbitrary decay mass products