Philippines president Rodrigo Duterte claims he used to be gay but ‘cured myself’ in a gross attack on a political rival