A cluster of Legionnaires' disease is being investigated by health officials in New York City, with 23 cases of the severe pneumonia confirmed.