Teaching Transformers Causal Reasoning through Axiomatic Training