Nadal undergoes arthroscopy to check hip injury