Australia allrounder Marcus Stoinis has announced his immediate retirement from ODI cricket, ruling himself out of the upcoming Champions Trophy.