US stocks ease from record highs, world indexes headed for double-digit annual gains