Stocks, U.S. yields gain ahead of Fed chair Powell’s Jackson Hole speech