Species-rich amphibian communities better able to fend off parasitic infections