Pregnancy losses in women with Type 1 or Type 2 diabetes in the UK: an investigation using primary care records