Anisotropy and magnetic phase transitions in the rare earth tetraborides TbB4, HoB4 and ErB4