The 38-year-old bowed out from the sport after Spain’s Davis Cup loss to the Netherlands in Malaga