Nearly 6,000 social homes are thought to be illegally listed on short-term rental platforms.