Development of a $\beta$-delayed charged particle detector for studying novae and x-ray bursts