Police in New Delhi have detained opposition politicians and demonstrators during protests.