The conservative Popular Party won the most votes in Spain’s repeat national elections on Sunday but not enough to secure a majority.