Congregation leaves Church of Scotland over homosexuality dispute