A drought has been declared in parts of Queensland for the first time in two years as farmers face worsening conditions after months of below-average rain.