Observation of nanoscale magnetic fields using twisted electron beams