Finally found the fault (well almost). I fiddled with the wires underneath the ignition key switch and the lights came on. I could then start the bike as normal. There's a loose connection (as uzi_999 mentioned) amongst those wires. I'll take a good look at the weekend when I have more time.
Thanks for all your help.