The University of Dundee has warned cuts to staffing levels are “inevitable” as a result of a projected deficit of up to £30 million.