After months of speculation and unrest, Manchester United have reached an agreement with Newcastle United for Dan Ashworth.