A socialist regional mayor who has been blocked from being Labour’s representative to contest the north-east mayoralty has announced that he is resigning from the party to try to run as an independent candidate.