Dam threatens to break after heavy rainfall in Brazil