Accurate detection of shared genetic architecture from GWAS summary statistics in the small-sample context