People in much of the Northeast were advised to stay off the roads because of treacherous conditions, with states of emergency declared in New York and New Jersey.