Rising numbers of people with mental health issues are being given employment advice as part of a drive to get them back to work, NHS data suggests.