Clergyman in same-sex 'marriage' to take legal action against CofE