Energy dissipation and phononic friction in carbon nanotube oscillators