Fabio Fognini announced his retirement from tennis at Wimbledon on Wednesday as one of the sport's most colourful characters called time on his volatile career.