Foreign buyers are bailing on the U.S. housing market