There has been a steep rise in the number of complaints made about NHS mental health services, figures suggest.