Villagers build 'leaky dams' to fight flooding