Somalia president admits insurgents gains