Sepp Blatter resigned as president of FIFA as a mounting corruption scandal engulfed world football's governing body.