Mick Lynch, one of the UK's most influential union leaders in recent history, has announced he is retiring.