The thick disc component of the Galaxy from near infrared colour-magnitude diagrams