Lewis Hamilton says he intends to keep racing in F1 beyond the end of his Mercedes deal in 2023