Field induced spin transitions and large magnetoresistance in the quasi-one-dimensional magnet Ca3Co2O6