The Ministry of Justice freed 179 prisoners by mistake in the year to March, official new figures show.