Adams Childrenswear has been sold to former owner John Shannon, bringing the UK retailer out of administration and saving 1,900 jobs.