An influential group of ministers in Scotland's largest Protestant church has said that its clergy and congregations have been "sinfully" intolerant of gays and lesbians in its ranks.