Brazil has marked Independence Day with the two main candidates for October’s presidential election holding events.