Monsoon rains caused a central Myanmar dam to overflow, inundating about 100 villages and blocking the country's biggest highway, a government official says.