Causal discovery in the presence of missing data