Emergency services struggle to rescue thousands of people trapped in homes