Kaon production in p reactions at a centre-of-mass energy of 540 GeV