Islam allows awarding punishment publicly: Ashrafi