Armenian leader says he faces ‘coup attempt’ amid anger over ‘painful’ deal to end war with Azerbaijan