Statistical properties of polarons in a magnetic field. I. Analytic results