Pedro Sanchez has resigned as leader of Spain's Socialist Party and as a lawmaker after its general election defeat, with a caretaker board...