John Mahoney, the cranky dad on ‘Frasier,’ dies at 77