Liverpool have officially confirmed that 12 players will leave the club after their contracts expired.