Open containers of alcohol in some public spaces in Barnsley town centre are set to be banned in an effort to crack down on antisocial behaviour.