Helping their communities is one way for colleges and universities to counteract crashing public confidence in higher education, advocates say — a problem that has been worsened by political attacks and self-destructive missteps by even the most elite universities.