Labour wins narrow majority after 13 years of Tory rule