Swedish PM resigns on first day in job