Bayer Leverkusen have appointed Kasper Hjulmand as their new head coach on a contract running until 2027, following the dismissal of Erik ten Hag.