Manchester United to sign Brazilian midfielder Fred