Stock markets rebounded on strong macro data and value buying, with Sensex closing higher by nearly 593 points