A New Zealand university is investigating after the body of a student was found in one of its residences this week, nearly two months after he died in his room.