Free energy and effective mass of the polaron at finite temperatures