Brazil's former president has been put under house arrest while he is on trial for allegedly plotting to stage a coup.