New Cosmological Constraints on the Higgs Boson and Top Quark Masses