A 19-year-old man is evaluated for a month-long history of rash. He states that the rash is extremely itchy; he has areas of involvement under his arms, around his waist, on his wrists, between his fingers, and on his palms. Medical history is unremarkable, and he takes no medications. He has not attempted to treat the rash. He is temporarily homeless and has been staying with different friends or in the local shelter. Two months ago, he left the apartment of a friend who had a similar rash.

The general physical examination is unremarkable. Skin examination shows scattered, excoriated lesions that spare the feet. Skin lesions on the hand are shown.

Which of the following is the most likely diagnosis?