The number of companies holding buy-to-let property in the UK has passed 400,000, according to analysis of Companies House data by Hamptons.