A British man has been jailed after hitting a muslim teen with a slab of bacon after hurling insults at her and her mother in public.