Temperature-mediated switching of magnetoresistance in Co-contacted multiwall carbon nanotubes