Stocks rise, capping down week