New York governor declares state of emergency amid heavy rain, flood threat