My nexus 5 (just over two years old) has taken to switching off at apparently random moments. If I turn it on again, it usually shows about 3% battery life; if I then turn it off and on again, this sometimes goes up to around 25%. If I plug it in, it starts charging from a higher figure. Here's...