Muon identification in a compact single-layered water Cherenkov detector and gamma/hadron discrimination using machine learning techniques