Poll suggests half of gay men hold religious beliefs