Bible-bangers aren't the brightest, study shows