The UK general election ended in a hung parliament, with no party gaining enough seats in parliament to form a government. Here is how it unfolded.