Ferrari confirmed Thursday that the team was signing seven-time Formula 1 champion Lewis Hamilton to a multi-year contract. Hamilton will…