England managing director Ashley Giles says education, openness and rehabilitation are key to addressing the problem of racism in cricket.