Spontaneous resolution of retained products of conception in late pregnancy: retrospective cohort study