Lewis Hamilton has vowed to get rid of his off-track distractions next year so he can return to peak form.