Man, allegedly armed with machete, takes girlfriend hostage