Brazil's jailed former President Lula da Silva has pulled out of next month's presidential election, allowing his running mate to stand in his place.