Non-parametric inference of causal interactions from geological records