Thailands premiärminister Prayut Chan-o-cha – som grep makten i en militärkupp 2014 – meddelar på tisdagen att han lämnar politiken.