Discrete-Time CPPI Under Transaction Cost and Regime Switching