Heavy rains set off flash floods in New York state