DETAIL: Task DEmonsTration Attribution for Interpretable In-context Learning