What is the purpose of data immutability in computer programming, and how does it benefit developers?