US retail sales were flat in July as inflation takes a toll