US stocks end volatile week at records, European stocks also gain