Former US president Donald Trump arrives in New York City to learn the charges he faces, as loyal supporters flock to the city and authorities brace for unrest.