Indian real-estate companies, which a year ago were peddling luxury to the nation's growing middle class, are now trying to drive sales by pitching "affordable" housing.