Empirical period–colour and amplitude–colour relations for Classical Cepheids and RR Lyrae variables