Prince Harry has resigned as a patron of a charity he co-founded nearly 20 years ago, citing a dispute between trustees and the chair of the board.