The mudslides swept away the homes of rich and poor alike in and around Teresopolis and other towns , but the brunt of the disaster was borne by poorer rural residents in houses built in risky areas without formal planning permission .