An adaptation of Nitsche's method to the Tresca friction problem