Lewis Hamilton set to leave McLaren to join Mercedes