Text this: Small-coupling dynamic cavity: A Bayesian mean-field framework for epidemic inference