Cold gas in the Perseus cluster core: excitation of molecular gas in filaments