New mayor, 34, was sworn in by state attorney general Letitia James in old beaux arts city hall subway station