Armenia has detained former president Robert Kocharyan, now an opposition leader, on corruption charges.