Number of social homes to fall by 230,000 by 2020, analysis reveals