Portuguese Prime Minister António Costa has resigned while his government is involved in a widespread corruption probe