Ninja sword owners are to be paid the face value of their weapons to hand them over to police before they are officially banned, the Home Office has announced.