Maldives president declares emergency, former leader arrested