A statistical framework for GWAS of high dimensional phenotypes using summary statistics, with application to metabolite GWAS