Foreign investors will be banned from buying an existing home for two years and land-banking will be curtailed, in a Labor bid to ease housing affordability.