A former aide to Gordon Brown has been appointed to help steer Sir Keir Starmer’s efforts to “reset” relations with the European Union.