The four-time Grand Slam champion reached the final of the ASB Classic in preparation for the first major of the season but had to retire and undergo an MRI scan