Theresa May has denied a claim by former chancellor George Osborne that she blocked a deal over EU citizens' rights last year.