Ground-based optical transmission spectrum of the hot Jupiter HAT-P-1b