Investigation of current noise in underdamped Josephson devices by switching current measurements