Flash floods in Kashmir caused by heavy rainfall have killed at least 37 people.