US equity markets climbed on Friday, as the three major averages posted their first weekly gain of the new year.