Former Liverpool Winger John Barnes says football can only rid itself of racism by educating people about why it is wrong.