Palm oil gains over 1% on stronger rival oils, weaker ringgit