Nanoscale glucan polymer network causes pathogen resistance