The Duke of Cambridge has highlighted the importance of tackling racism and improving mental health in football during a visit to a north London football club.