Nearly two dozen Massachusetts colleges, or just over one-third of those analyzed by the Boston Business Journal, have had student costs rise by at least 40% over the last decade.