Pregnant women with inflammatory bowel disease could have a higher chance of developing mental illness after giving birth, a new study says.