The Taliban have formally announced a ban on coeducation in Afghanistan, saying men would not be allowed to teach girl students in the country.