Tufting machines with provision for producing patterns by inserting loops of different nature or colour