A record number of suicide deaths were registered in Wigan, new figures show.