Former CIA Director David Petraeus has offered an apology over his affair in an email to a friend, saying Friday…