Measuring the attenuation length of water in the CHIPS-M water Cherenkov detector