West Brom have appointed former Real Betis manager Pepe Mel as their new head coach on an 18-month contract.