Erik ten Hag has said Alejandro Garnacho has apologised for liking social media posts which criticised the Manchester United manager.