Update: The problem stems from one of the plugins. None of the deactivate links worked so renamed each directory then re-enabled them one by one. The problem has gone but I can't risk this happening again on the live site. Currently I don't know which plugin caused the problem, but I have an inkling. What could cause the problem I experienced and what should I be looking for in the source?
Also, Can't find a relevant tag for this question.