The University of Bradford has been awarded £2.5 million to address mental health challenges in the district.