A major effort is under way to reach thousands of people trapped in their homes after a dam swollen by monsoon rain overflowed in central Myanmar.