Weakly supervised causal representation learning