Cabinet documents detail resistance to allowing homosexuals to serve in Australian military