Reduced density matrix functional theory at finite temperature