There is no good way to keep macaroni from absorbing mayonnaise since that is how starches work. You can try coating the cooked pasta with olive oil before adding the dressing but that will also hinder the dressing from sticking to the pasta. The best option is to only add half of the dressing before refrigeration and the add the remaining dressing before serving.