Invariant Causal Mechanisms through Distribution Matching