Metastats: an improved statistical method for analysis of metagenomic data