Barcelona seal major first signing of the summer on pre-contract agreement