Constraints on new physics from the Higgs and top masses