Former House Speaker Nancy Pelosi has had hip replacement surgery at a U.S. military hospital in Germany after falling while at an event in Luxembourg with other members of Congress.