GASP - X. APEX observations of molecular gas in the discs and in the tails of ram-pressure stripped galaxies