Branching laws for classical groups: the non-tempered case