Uganda's main opposition presidential candidate says blocked by military from leaving compound