Malaysia prepared for its worst floods in a decade after heavier-than-expected monsoon rains caused severe flooding that killed three people and displaced more than 80,000.