Nuclear molecular outflow in the Seyfert galaxy NGC 3227