Reality TV star Josh Duggar released an apology after hackers outed him as one of the millions of people who used the cheating website Ashley Madison.