About 24,000 people will be displaced from towns in the Amazon to make way for the world’s third biggest dam.