New York declares state of emergency after Ida triggers flooding