Jeremy Lin, who took the NBA by storm in 2012 during a stretch of games for the Knicks that was dubbed “Linsanity,” has announced his retirement from professional basketball.