At least 50 people are confirmed dead in western Indonesia where villages have been hit by flash floods.