Stochastic Functional Differential Equations with Markovian Switching