EU leaders divided as marathon talks stretch into fourth day