The impact of a history of poor mental health on health care costs in the perinatal period