CAIRO — Egypt’s bitter split over who should be ruling the country exploded into violent clashes in the streets of Cairo and elsewhere on Friday as masses of demonstrators celebrating the ouster of President Mohamed Morsi battled crowds of Islamists who wanted him reinstated.