Bodies usually stiffen after death in a process known as rigor mortis. But why does this happen, and how long does it last?