Former Australia leg spinner Shane Warne has played his final match in a career that has lasted over two decades