Suggestion to order only those over 60 to stay home was floated at recent coronavirus cabinet meeting, but deputy attorney general warned legality was doubtful