Crowds swept into the Beijing Exhibition Center on a recent morning for a real-estate expo that drew thousands of people interested in foreign property.

That kind of surging interest has created a flood of capital that is washing over cities throughout the globe, distorting home prices, irritating local residents—and defying almost every attempt to restrain it.

In...