The M23 rebel group has declared the key city of Goma under its control, signalling a big blow to the Congolese army.