Former deputy premier Anwar Ibrahim will run for president of his party despite being banned from holding public office.