Manchester United manager Louis van Gaal says the 5-3 defeat to Leicester City reminded him of a similar scenario when he was in charge of Barcelona.