Opposition allegations of polling irregularities raised the prospect of continued tension after a campaign marred by street clashes.