Length of pregnancy can vary by up to five weeks, scientists discover