Five-year-old rescued from well after days trapped