The Federal Government has announced it will ban foreign investors from buying existing homes for two years, in an attempt to boost housing supply for locals.