Ex-president handed jail time for ‘coup’