The Armenian leader says he is facing a “coup attempt” amid anger over a “painful” deal to end the war with Azerbaijan