A theory of protoplasmic streaming