Petraeus: Sorry for affair that led to resignation