Upper gastrointestinal bleeding and factors affecting the rebleeding risk