Stocks climb as investors get back to buying