Trams cost ‘underestimated by £231m’ amid ‘litany of failures’