Arsenal midfielder Chris Cazorla was told he would only be able to walk after his foot became infected following surgery.