Parts of Malaysia remained flooded on Saturday after days of heavy rain that forced nearly 41,000 people to flee their homes.