S&P 500 hovers near record highs as dollar climbs on hawkish Fed policy