Beneficial and harmful fungi are at the root of forest diversity