Algerian president resists calls to step down as army threatens to take control