Giving birth sharpens the mind years later, study suggests as experts say women may benefit from oestrogen produced in pregnancy or receive a boost to their immune system