The role of anharmonicity in a variety of phase transitions controlled by pressure, including melting, brittle-to-ductile transition, and the liquid-vapour critical point