Higgs boson pair production at NNLO with top quark mass effects