Hundreds of Muslims have gathered in the Indian city of Ujjain to protest the partial demolition of a historic mosque.