Local thermal fluctuations in current-carrying superconducting nanowires