Hundreds of demonstrators have been detained following Venezuela's disputed presidential election.