A man who punched a stranger to the ground for refusing him a cigarette outside a Belfast pub has been jailed for five months.