Australians will pay less for certain medicines as the federal government promises to cap costs at $25 per script if it is re-elected.