A photometric study of the open cluster Haffner 6