Punjab Congress chief resigns for losing election