Outgoing Ireland coach Joe Schmidt says he regrets the way his side prepared mentally for the World Cup, which ended with a quarter-final defeat to New Zealand.