Ben Affleck completed his rehabilitation programme but called the process a lifelong struggle.