Despite the weekly decline, stocks were still hovering near records.