Swedish PM Andersson resigns on first day