Characterisation and testing of CHEC-M—A camera prototype for the small-sized telescopes of the Cherenkov telescope array