A domain decomposition method for parabolic problems