The seventh seed and US Open semi-finalist retired from his first-round match while struggling with cramping