Labour activist claims national party blocked him standing for MP in Ripon