Phase field model of deformation in multiphase systems