Lewis Hamilton planning to stay in F1 next year