Learning beyond-pairwise interactions enables the bottom-up prediction of microbial community structure