Waning interest in master’s and professional programs precipitated a 7-percent drop in foreign enrollment last fall.