Court denies bail for Armenian ex-president