This could be caused by surface contamination or paint incompatibility. Soap residue and grease can cause problems like this. The only way to deal with this is to prime before painting. Using a tinted shellac primer, Zinsser B-I-N, should take care of it. An alternitive primer is Kilz or Zinsser Cover Stain. The stinky primers will do a good job.
Consider applying 2 coats of primer. the first coat could lift some contamination. The second coat will assure that the walls are properly sealed.