US stocks end volatile week at records, European shares also rise