Sir Chris Hoy, the six-time Olympic gold medal-winner and 11-time world champion, has retired from track cycling.