The planted matching problem: Sharp threshold and infinite-order phase transition