I usually sand the edges of the inner piece that pegs into the arm to reduce friction then seal it with a bit of superglue after painting. I've been experimenting with gorilla glue with decent results as well.
Personally, I don't paint the joints. I find either forearms that have a similar color to what I'm painting, or I go with gray or silver for the forearms and forelegs.