Ramani Ayer is retiring from Hartford Financial Services Group Inc. Ayer served as chairman and chief executive officer for the company since 1997.