The number of new H.I.V. infections in men under 30 who have sex with men has increased sharply in New York City in the last five years, particularly among blacks and Hispanics, even as AIDS deaths and overall H.I.V. infection rates in the city have steadily declined.