A rational model of causal induction with continuous causes