On the Capacity of Self-Attention