US stocks rise as investors try to shake off August slump ahead of retail data