CRMC reaches agreement with town on erosion