Asymptotic theory of in-context learning by linear attention