Text this: An automatic adaptive method to combine summary statistics in approximate Bayesian computation