A state of Emergency has been declared in the Central African Republic as the army and UN forces try to repel advancing rebel groups.