A Musselburgh-based charity, which has supported more than 16,000 children and young people living with chronic illness, is to close.