I recently moved into a new house and started preparing a wall for painting. I noticed the old paint was peeling easily, coming off in large sheets when rubbed. I removed all of the peeling paint, applied an undercoat/primer, and then painted the final top coat. However, the new paint is now peeling in the same way, even after using the primer. What could be causing this issue, and how can I ensure the paint adheres to the wall properly?