Middlesbrough and Sunderland have been named the cheapest places to be a student in the UK, according to research.