Hafeez’s future to be based on his performance in all formats: Zaheer