A report released Friday by the Commerce Department said that retail sales in the U.S. rose 0.5% in July, the most in four months and demonstrating that consumers may be holding their own in a tumultuous economy.