Researcher Apologizes for Study of Gay Therapy