H&R Block reports 4Q loss due to mortgage operations