Optimal monetary policy and firm entry