Seven-time F1 world champion Lewis Hamilton will race for Mercedes next season before replacing Carlos Sainz at Ferrari