New York City takes the top spot in the annual ranking of the world’s most expensive cities, according to an analysis by UBS.