Fully history-dependent quasivariational inequalities in contact mechanics