Theory of a Polaron at Finite Temperatures