Despite a building boom, the number of affordable rental units has fallen in the last decade, a recent study shows.