Long-tailed Classification from a Bayesian-decision-theory Perspective