Magnetic field, magnetospheric accretion, and candidate planet of the young star GM Aurigae observed with SPIRou