Mechanistic beliefs determine adherence to the Markov property in causal reasoning