“Senator Mitt Romney, the retiring Republican from Utah and onetime standard-bearer of a party that has shifted under his feet, said Tuesday that he would not endorse Vice President Kamala Harris in the election because it might hamper a critical role he could play in helping to rebuild the G.O.P.