Infödda New York-bor förkastade till stor del Mamdani, medan de som hade bott i staden i mindre än fem år röstade på honom i överväldigande antal.