Gloucester have officially confirmed that Wales scrum-half Tavis Knoyle will move to Kingsholm on a two-year deal.