The Australian government has ordered the sale of residential properties bought in breach of foreign ownership laws.