An Egyptian footballer who suffered a heart attack months ago during a match and was hospitalised has passed away at 31.