U.S. shares retreat, European shares end little-changed