mugging in spain is a serious problem. The police dont seem able or willing to deal with it. it affects all the major cities.
I always keep copies of my docs on a back up email. the UK or British Embassy will allow you to access emails from their office. You need to pay for a new passport if your is stolen.