India detains hundreds over communal riots