Getting back to exercise in the first 12 weeks after birth will help women boost both physical and mental health and improve sleep, according to a study.