Free electron laser-driven ultrafast rearrangement of the electronic structure in Ti