The cocoons are sticky & bug inside squishes red. They are all over the branches of barberry bushes and Japanese maple.
What Makes Small White Cocoons & Squishes Red?
Certified GKH Gardening Expert
The "cocoons" are likely the bug itself. It sounds like you have either mealy bugs or wooly aphids. Here is more information about how to control both pests: