Australia's batting all-rounder Glenn Maxwell has announced his retirement from international cricket. The 38-year-old has also quit first-class and List A cricket.