Glenn Maxwell retires