Multifamily housing index has biggest quarterly gain in five years