Collaborative causal inference with a distributed data-sharing management