Three-time Grand Slam champion Angelique Kerber says she is going to retire from tennis after the Olympic Games in Paris.