US stocks closed higher on Friday after a rocky start to the week, as a rebound in technology shares offset tumbling consumer ...