Depression and anxiety in pregnant women may be connected to the type of delivery they have, new research suggests.