Home Entertainment ITV beats Channel 4 to racing deal