British horse racing has a “consistent pattern” of racism, according to research carried out by the sport’s governing body.