US stocks close week in positive territory, hitting record highs