A dynamic perspective to evaluate multiple treatments through a causal latent Markov model