President Trump has signed an order seeking to bar large institutional investors from buying single-family homes.