Alleviating Privacy Attacks via Causal Learning