Characterization of the Hamamatsu H12700A-03 multi-anode photomultiplier tube for the LHCb RICH upgrade