Floods have killed at least two people and forced more than 50,000 to flee their homes as torrential rains in four states engulfed whole towns and villages.