Ghana’s parliament has voted to outlaw the death penalty for almost all crimes, becoming the latest African country to repeal capital punishment, lawmakers said on Wednesday.