Some of Boston’s priciest properties face structural risk as underground timber pilings deteriorate amid falling groundwater levels.