Hypothesis-free discovery from epidemiological data by automatic detection and local inference for tree-based nonlinearities and interactions