Tanzania bars main opposition party from elections for 5 years