Zohran Mamdani takes office as New York mayor, promising a new direction for the city, in a ceremony led by Senator Bernie Sanders.