Photographer Sam Wright was warned not to attend a horse fair with his camera. He ignored the prejudice – and found a warm, welcoming community