Wal-Mart to build smaller stores in cities nationwide