Social and ecological drivers of pathogen transmission dynamics in East African great apes