Temperature dependence of antiferromagnetic order in the Hubbard model