India batsman Ambati Rayudu has announced his retirement from all forms of cricket after the double 2019 World Cup snub.